

/* [start]	preregister */

	void preregister(){
	
		int currentYear = new registnet.dao.SystemPropertiesPeer().getSystemProperties().getAcademicYear();
		int currentSemester = new registnet.dao.SystemPropertiesPeer().getSystemProperties().getSemester();
		
		boolean isFinished = new registnet.dao.StudentStandingPeer().hasData(currentSemester,currentYear);
		 	isFinished = isFinished && (new registnet.dao.StudentClassificationPeer().hasData(currentSemester,currentYear));
		if(isFinished){
			int isConfirmed = Messagebox.show("Restart Pre-enlistment process?", "Question", Messagebox.YES | Messagebox.NO, Messagebox.QUESTION);
			if (isConfirmed == Messagebox.NO) return;
		}else{
			int isConfirmed = Messagebox.show("Proceed to the Pre-enlistment process?", "Question", Messagebox.YES | Messagebox.NO, Messagebox.QUESTION);
			if (isConfirmed == Messagebox.NO) return;
		}
	
		desktop.enableServerPush(true);
				
		registnet.base.student.peer.StudentPeer studentPeer = new registnet.base.student.peer.StudentPeer(desktop);
		studentPeer.start();
		showInfo();
		
	}
	
/* [end] */